<?php

App::uses('AppModel', 'Model');

class Carrier extends AppModel {

	public $hasMany = array(
		'Driver'  => array('dependent'=>true),
		'Vehicle' => array('dependent'=>true)
	);
	public $order = "Carrier.name";
	
	public $validate = array(
		'name' => array(
			'rule' => 'notEmpty',
			'message' => 'Morate uneti naziv Prevoznika'
		)
	);

}

?>
